package com.woniuxy.background.dao;

import com.woniuxy.background.pojo.Orderitem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface OrderitemMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Orderitem record);

    int insertSelective(Orderitem record);

    Orderitem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Orderitem record);

    int updateByPrimaryKey(Orderitem record);

    @Select("select * from orderitem")
    List<Orderitem> selectAllByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);
    @Select("select * from orderitem where oid = #{id}")
    Orderitem selectByOid(int id);
}